Skip to content

v3: support overlapping multi-column vindexes#4996

Merged
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-multi-lookup
Aug 24, 2019
Merged

v3: support overlapping multi-column vindexes#4996
sougou merged 1 commit intovitessio:masterfrom
planetscale:ss-multi-lookup

Conversation

@sougou
Copy link
Copy Markdown
Contributor

@sougou sougou commented Jul 15, 2019

There exist use cases where one needs vindexes with overlapping columns. In such scenarios, the extraction of values cannot be done simultaneously with the substitution of bindvars. If so, the first vindex will substitute its bindvar name to replace an existing value, and then a subsequent vindex may pick up the previously substituted value instead of the original value.

With this logic change, we pull all necessary values out of the insert values in the first pass, and substitutes those values with bind var names in a separate pass.

Signed-off-by: Sugu Sougoumarane ssougou@gmail.com

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants